package com.yoga.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * yoga_coachprivatecourse
 * @author 
 */
public class YogaCoachprivatecourse implements Serializable {
    private Integer cftid;

    private String uid;

    private Date begintime;

    private Date endtime;

    private Date classday;

    private BigDecimal price;

    private String sold;

    private String isdelete;

    private String overdue;

    private static final long serialVersionUID = 1L;

    public Integer getCftid() {
        return cftid;
    }

    public void setCftid(Integer cftid) {
        this.cftid = cftid;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public Date getBegintime() {
        return begintime;
    }

    public void setBegintime(Date begintime) {
        this.begintime = begintime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public Date getClassday() {
        return classday;
    }

    public void setClassday(Date classday) {
        this.classday = classday;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getSold() {
        return sold;
    }

    public void setSold(String sold) {
        this.sold = sold;
    }

    public String getIsdelete() {
        return isdelete;
    }

    public void setIsdelete(String isdelete) {
        this.isdelete = isdelete;
    }

    public String getOverdue() {
        return overdue;
    }

    public void setOverdue(String overdue) {
        this.overdue = overdue;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        YogaCoachprivatecourse other = (YogaCoachprivatecourse) that;
        return (this.getCftid() == null ? other.getCftid() == null : this.getCftid().equals(other.getCftid()))
            && (this.getUid() == null ? other.getUid() == null : this.getUid().equals(other.getUid()))
            && (this.getBegintime() == null ? other.getBegintime() == null : this.getBegintime().equals(other.getBegintime()))
            && (this.getEndtime() == null ? other.getEndtime() == null : this.getEndtime().equals(other.getEndtime()))
            && (this.getClassday() == null ? other.getClassday() == null : this.getClassday().equals(other.getClassday()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getSold() == null ? other.getSold() == null : this.getSold().equals(other.getSold()))
            && (this.getIsdelete() == null ? other.getIsdelete() == null : this.getIsdelete().equals(other.getIsdelete()))
            && (this.getOverdue() == null ? other.getOverdue() == null : this.getOverdue().equals(other.getOverdue()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCftid() == null) ? 0 : getCftid().hashCode());
        result = prime * result + ((getUid() == null) ? 0 : getUid().hashCode());
        result = prime * result + ((getBegintime() == null) ? 0 : getBegintime().hashCode());
        result = prime * result + ((getEndtime() == null) ? 0 : getEndtime().hashCode());
        result = prime * result + ((getClassday() == null) ? 0 : getClassday().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getSold() == null) ? 0 : getSold().hashCode());
        result = prime * result + ((getIsdelete() == null) ? 0 : getIsdelete().hashCode());
        result = prime * result + ((getOverdue() == null) ? 0 : getOverdue().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cftid=").append(cftid);
        sb.append(", uid=").append(uid);
        sb.append(", begintime=").append(begintime);
        sb.append(", endtime=").append(endtime);
        sb.append(", classday=").append(classday);
        sb.append(", price=").append(price);
        sb.append(", sold=").append(sold);
        sb.append(", isdelete=").append(isdelete);
        sb.append(", overdue=").append(overdue);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}